<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/bootstrap.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
</head>

<body>
    <!-- .fa-6x可以让图标放大指定的倍数 -->
    <div class="fa-6x">
        <!-- .fa-spin可以让图标旋转 -->
        <i class="fas fa-universal-access fa-spin"></i>
        <i class="fas fa-edit"></i>
        <i class="fas fa-spinner fa-spin"></i>
        <i class="fas fa-circle-notch fa-spin"></i>
        <i class="fas fa-sync fa-spin"></i>
        <i class="fas fa-cog fa-spin"></i>
        <i class="fas fa-spinner fa-pulse"></i>
        <i class="fas fa-stroopwafel fa-spin"></i>
    </div>
    <!-- bootstrap图标添加到按钮 -->
    <button type="button" class="btn btn-primary">
        <i class="bi-alarm"></i>
        闹钟</button>
    <button type="button" class="btn btn-primary">
        <i class="bi-volum-mute"></i>
        静音</button>
    <button type="button" class="btn btn-primary">
        <i class="bi bi-badge-4k"></i>
        静音</button>
        <hr>
        <!-- 图标放到导航栏 -->
        <nav class="nav nav-tabs">
            <a href="#" class="nav-item nav-link active">
                <i class="fa fa-home"></i>Home
            </a>
            <a href="#" class="nav-item nav-link active">
                <i class="fas fa-beer" ></i>beer
            </a>
        </nav>
        <hr>
        <!-- 可以使用br标签创建换行的图标和文字 -->
        <button type="button" class="btn btn-primary btn-lg">
            <span class="fa fa-search"></span><br>
            <span>搜索</span>
        </button>
        <!-- 在按钮上使用 font-size css属性来调整字体和图标的大小 -->
        <button type="button" class="btn btn-primary btn-lg" style="font-size: 60px;">
            <span class="fa fa-search"></span>
            <span>搜索</span>
        </button>
           <!-- 在按钮上使用 color css属性来调整字体和图标的颜色 -->
        <button type="button" class="btn btn-primary btn-lg" style="color: red;">
            <span class="fa fa-search"></span>
            <span>搜索</span>
        </button>
        <hr>
        
        <!-- 使用svg导入图标，不需要依赖cdn -->
        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-usb-c" viewBox="0 0 16 16">
            <path d="M3.5 7.5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1h-9Z"/>
            <path d="M0 8a3 3 0 0 1 3-3h10a3 3 0 1 1 0 6H3a3 3 0 0 1-3-3Zm3-2a2 2 0 1 0 0 4h10a2 2 0 1 0 0-4H3Z"/>
          </svg>

</body>

</html>